const String jsonKeyAddressBeanUserId = 'user_id';
const String jsonKeyAddressBeanName = 'name';
const String jsonKeyAddressBeanGender = 'gender';
const String jsonKeyAddressBeanPhone = 'phone';
const String jsonKeyAddressBeanAddress = 'address';
const String jsonKeyAddressBeanAddressId = 'address_id';
const String jsonKeyAddressBeanUpdateTime = 'update_time';

class AddressBean {
  String? userId;
  String? name;
  String? gender;
  String? phone;
  String? address;
  String? addressId;
  String? updateTime;

  AddressBean({
    this.userId,
    this.name,
    this.gender,
    this.phone,
    this.address,
    this.addressId,
    this.updateTime,
  });
  AddressBean.fromJson(dynamic json) {
    userId = json[jsonKeyAddressBeanUserId]?.toString();
    name = json[jsonKeyAddressBeanName]?.toString();
    gender = json[jsonKeyAddressBeanGender]?.toString();
    phone = json[jsonKeyAddressBeanPhone]?.toString();
    address = json[jsonKeyAddressBeanAddress]?.toString();
    addressId = json[jsonKeyAddressBeanAddressId]?.toString();
    updateTime = json[jsonKeyAddressBeanUpdateTime]?.toString();
  }

  dynamic toJson() {
    final data = <String, dynamic>{};
    data[jsonKeyAddressBeanUserId] = userId;
    data[jsonKeyAddressBeanName] = name;
    data[jsonKeyAddressBeanGender] = gender;
    data[jsonKeyAddressBeanPhone] = phone;
    data[jsonKeyAddressBeanAddress] = address;
    data[jsonKeyAddressBeanAddressId] = addressId;
    data[jsonKeyAddressBeanUpdateTime] = updateTime;
    return data;
  }
}
